Skip to content

fix(desktop): import avatar URLs client-side#2476

Open
ccarpene-blk wants to merge 1 commit into
block:mainfrom
ccarpene-blk:fix/avatar-url-client-upload
Open

fix(desktop): import avatar URLs client-side#2476
ccarpene-blk wants to merge 1 commit into
block:mainfrom
ccarpene-blk:fix/avatar-url-client-upload

Conversation

@ccarpene-blk

Copy link
Copy Markdown

Summary

  • fetch pasted avatar URLs in the Desktop client and upload the bytes as relay media before saving
  • render avatars only when they are inline previews/data URLs or current-relay media URLs
  • update profile, onboarding, and agent avatar URL flows plus e2e mocks/tests for the import-then-save behavior

Testing

  • pnpm --dir desktop test
  • pnpm --dir desktop exec tsc --noEmit
  • pnpm --dir desktop exec biome check src/shared/lib/avatarUrl.ts src/shared/lib/avatarUrl.test.mjs src/features/profile/avatarUrlImport.ts src/features/profile/avatarUrlImport.test.mjs src/features/profile/useAvatarUpload.ts src/features/profile/ui/ProfileAvatar.tsx src/features/profile/ui/ProfileAvatarEditor.tsx src/features/profile/ui/AvatarUpload.tsx src/shared/ui/UserAvatar.tsx src/features/agents/ui/AgentCreationPreview.tsx src/testing/e2eBridge.ts tests/e2e/profile.spec.ts tests/e2e/messaging.spec.ts tests/e2e/onboarding.spec.ts tests/e2e/onboarding-avatar-skip.spec.ts tests/e2e/onboarding-docked-cta-screenshots.spec.ts
  • pnpm --dir desktop build:e2e
  • pnpm --dir desktop exec playwright test tests/e2e/profile.spec.ts -g "updates the relay-backed profile from settings|uploads local profile avatar files before saving|reveals emoji background colors" --workers=1

@ccarpene-blk
ccarpene-blk requested a review from a team as a code owner July 23, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant